{extend name='base'}
{block name='nav2'}
    <a><cite>产业布局</cite></a>
{/block}
{block name='nav3'}
    <a><cite>产品管理</cite></a>
{/block}
{block name='nav4'}
    <a><cite>添加</cite></a>
{/block}
{block name='kdscript'}
    <script>
            var editor;
            KindEditor.ready(function(K) {
                editor = K.create('textarea[name="details"]', {
                    allowFileManager : true
                });
            });
    </script>
{/block}
{block name='con1'}
    <div class="x-body">
        <form class="layui-form" action="{:url('product_insert')}" method='post' enctype='multipart/form-data'>
            <input type="hidden" name='type' value='1'>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    产品类型
                </label>
                <div class="layui-input-block">
                    <select name="typeclass" id="" style=''>
                    {volist name='arr' id='list'}
                        <option value="{$list.typeclass}">{$list.typeclass}</option>
                    {/volist}
                    </select>
                    <!-- <div class='layui-unselect layui-form-select layui-form-selected'>
                        <div class='layui-select-title'>
                            <input type="text" placeholder='请选择' value='' readonly class='layui-input layui-unselect'>
                            <i class='layui-edge'></i>
                            <dl class='layui-anim layui-anim-upbit'>
                                {volist name='arr' id='list'}
                                    <dd lay-value='' class>{$list.typeclass}</dd>
                                {/volist}
                            </dl>
                        </div>
                    </div> -->
                </div> 
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                    产品图片
                </label>
                <div class="layui-input-block">
                    <input type="file" name="img" class='layui-input'>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" class='layui-input'>
                    产品名
                </label>
                <div class="layui-input-block">
                    <input type="text" name="name" class='layui-input'>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" class='layui-input'>
                    产品详情
                </label>
                <div class="layui-input-block">
                    <textarea name="details" style="width:100%;height:200px;visibility:hidden;"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">
                </label>
                <div class="layui-input-block">
                    <button class="layui-btn" type='submit'>
                        增加
                    </button>
                </div>
            </div>
        </form>
    </div>
{/block}      